<%@ page import="java.util.*" contentType="text/html; charset=utf-8" %>
<%
    String prompt = (String) request.getSession().getAttribute("prompt");
    if (prompt != null) {
        out.println("<script>alert('" + prompt + "');</script>");
        request.getSession().removeAttribute("prompt");
    }
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>登录界面</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/myCss.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="box">
    <div class="login-box">
        <div class="login-title text-center">
            <h1><small>选课系统登录</small></h1>
        </div>
        <div class="login-content ">
            <div class="form">
                <form action="doorServlet?flag=login" method="post">
                    <div class="form-group">
                        <div class="col-xs-12">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
                                <label for="id"></label>
                                <input type="text" id="id" name="id" class="form-control" placeholder="账号"/>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
                                <label for="password"></label>
                                <input type="password" id="password" name="password" class="form-control"
                                       placeholder="密码">
                            </div>
                        </div>
                    </div>
                    <div class="form-check">
                        <div class="col-xs-12">
                            <div class="form-check">
                                <input class="form-check-input" type="radio" id="s" name="userClass" value="student"
                                       checked><label for="s" class="form-check-label">学生</label>
                                <input class="form-check-input" type="radio" id="a" name="userClass"
                                       value="admin"><label for="a" class="form-check-label">管理员</label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group form-actions">
                        <div class="col-xs-4 col-xs-offset-4 ">
                            <button type="submit" class="btn btn-sm btn-info"><span
                                    class="glyphicon glyphicon-off"></span> 登录
                            </button>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-6 link">
                        </div>
                        <div class="col-xs-6 link">
                            <p class="text-center remove-margin"><small>还没注册?</small> <a
                                    href="jsp/signup.jsp"><small>注册</small></a>
                            </p>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>